<?php
	include(ROOTPATH .'include'. DS .'protect.php');
	include(ROOTPATH .'include'. DS .'checkUserLogin.php');
	
	include_once('class/task.class.php');
	$powder_min = 5 ;
	include(ROOTPATH .'include'. DS .'checkPowder.php');

	if(!$isTimeout)
		header('Location:./');
	
	
	include "header.php"; 
	
	
	$handle=opendir(ROOTPATH . DS .'lang');
	$file = readdir($handle);
	$langArray = array();
	while ($file = readdir($handle)){
		if($file != '.' && $file != '..' && $file != '.svn' && $file != '_notes'  ){
			include(ROOTPATH .'lang'. DS . $file );
			$name = explode('.',$file);
			$langArray[$name[0]] = $lang ;
		}
	}
	closedir($handle); 

	
?>
<script type="text/javascript" src="<?php echo JSLAB_PATH;?>datePicker/js/jquery-ui-1.7.custom.min.js"></script>
<link rel="stylesheet" href="<?php echo JSLAB_PATH;?>datePicker/themes/base/yellow1.css" type="text/css"> 

<script type="text/javascript" src="<?php echo JS_PATH;?>taskInvite.js"></script>
      
</head>
<body>
<div id="taskInvite" class="taskInvite">  
    <h2 class="titleOpen"><strong><?php echo $show['name']; ?></strong> - 发出评阅邀请</h2>          
    <form action="<?php echo WEB_ROOT_PATH;?>?option=taskInviteAction&type=action&do=invite" method="post" name="taskInviteForm" class="upload" id="taskInviteForm">
    
    <li><label>评阅人邮箱</label><input id="nameInvite" class="textShort" name="name" type="text" maxlength="200" /> <input id="nameInviteAdd" class="submit" type="button" value="添加" /><div id="nameInviteInfo"></div><div id="nameInviteList" class="inviteList"></div></li>
    <hr />
    <li><label>邀请信内容</label><textarea cols="50" rows="8" id="description" name="description">您好;
    邀请您参加“<?php echo $show['name'];?>”任务的评审。</textarea><span id="descriptionNum" class="titleNum"></span></li>
    <hr />
    <li><label>评阅截止日期</label><input id="timeEnd" class="text" name="timeEnd" type="text" maxlength="30" value="<?php echo date('Y-m-d',time()+1000000)?>" /><div class="tips">超过截止日期评阅人将无法打分</div></li>
    <li><label>评选界面语言</label><select name="inviteLang" id="inviteLang" class="select text"><?php
    	foreach( $langArray as $key => $langs ){
			$selected = $key == 'zh' ? 'selected="selected"' : '';
			echo '<option value="'. $key .'" '.$selected .' >'. $langs .'</option>';
		}
	?></select><div class="tips">默认语言</div></li>
    <hr />
    <li><label>参评范围</label>按当前得分由高至低，前 <input id="selectionArea" class="text" name="selectionArea" type="text" maxlength="4" value="50" /> 名作品</li>
    <hr />
    
    <ul class="box submits">    
    <div class="submitInfo"></div>
    <li><input name="" type="submit" value="<?php echo lang_submit;?>" class="submit" /><input name="task_id" type="hidden" value="<?php echo $idCode;?>" id="task_id"/></li>
    </ul>
    </form>
</div><!--#taskInvite-->
</body>
</html>
